package org.phalanx.gwt.client.screens;

import com.google.gwt.user.client.Command;

public class PhalanxMenuAction implements Command {
	private String firedCommand;
	private ContextPanelChooser chooser;
	
	public PhalanxMenuAction(String firedCommand, ContextPanelChooser chooser){
		this.firedCommand = firedCommand;
		this.chooser = chooser;
	}
	@Override
	public void execute() {
		if (firedCommand.equals("Home")){
			chooser.setContextPanel("home");
		}
	}

}
